fruits = ["Apple", "Orange", "Peach"]
# 水果的个数
counts = {
    "Apple": 6,
    "Peach": 4,
    "Orange": 30
}
# 水果的单价(单位：元/个)
price = {
    "Apple": 4.98,
    "Peach": 1.28,
    "Orange": 2.99
}

# 桃子有几个？方法一
count_of_peach = counts["Peach"]
print(count_of_peach)

# 桃子有几个？方法二
x = "Peach"
count_of_peach = counts[x]
print(count_of_peach)

print("=====我是可爱的分割线======")

for x in fruits:
    count_of_x = counts[x]
    print(f"{x}有{count_of_x}个")

# 水果一共有几个
total = 0
for x in fruits:
    count_of_x = counts[x]
    total += count_of_x
print(f"水果一共有{total}个")

# 水果一共多少钱（元）？